home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / CBGRX103.ZIP / contrib / libgrx / fntool / convert.c next >
Text File  |  1993-12-06  |  698b  |  37 lines

  1. #include "fntool.h"
  2.  
  3. void cvtfix2prop(void) {}
  4. void cvtprop2fix(void) {}
  5. void centerwidth(void) {}
  6. void centerheight(void) {}
  7.  
  8. /*
  9. void centerwidth(void)
  10. {
  11.     int fmin,fmax;
  12.     int offs,copy;
  13.     int ii,jj;
  14.  
  15.     fmax = 0;
  16.     fmin = outwidth;
  17.     for(ii = 0; ii < outheight; ii++) {
  18.         for(jj = 0; jj < outwidth; jj++) {
  19.         if(bitmap[ii][jj]) {
  20.             if(fmax < jj) fmax = jj;
  21.             if(fmin > jj) fmin = jj;
  22.         }
  23.         }
  24.     }
  25.     copy = fmax - fmin + 1;
  26.     if(copy <= 0) return;
  27.     offs = (outwidth - copy) / 2;
  28.     for(ii = 0; ii < outheight; ii++) {
  29.         memset(workline,0,outwidth);
  30.         memcpy(&workline[offs],&bitmap[ii][fmin],copy);
  31.         memcpy(bitmap[ii],workline,outwidth);
  32.     }
  33. }
  34. */
  35.  
  36.  
  37.